package com.yuhao.servicea.service.impl;

import com.yuhao.servicea.entity.ServiceATest;
import com.yuhao.servicea.repository.ServiceATestRepository;
import com.yuhao.servicea.service.ServiceATestService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class ServiceATestServiceImpl implements ServiceATestService {

    @Resource
    private ServiceATestRepository repository;

    @Override
    public void addTest(ServiceATest aTest) {
        repository.save(aTest);
    }

    @Override
    public List<ServiceATest> findAllTest() {
        return repository.findAll();
    }
}
